package com.yy.wga.mp.module.income.controller;


import com.yy.wga.mp.module.income.response.IncomeWithdrawRecordPageResponse;
import com.yy.wga.mp.module.income.service.IncomeWithdrawRecordService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.List;

/**
 * 用户提现记录
 *
 * @author guochao
 * @since 2024-11-12 00:27:50
 */
@RestController
@RequestMapping("api/income/withdrawRecord")
public class IncomeWithdrawRecordController {
    /**
     * 服务对象
     */
    @Resource
    private IncomeWithdrawRecordService incomeWithdrawRecordService;

    /**
     * 获取提现记录
     * @param request
     * @return
     */
    @PostMapping("list")
    public Result<List<IncomeWithdrawRecordPageResponse>> list(@Valid @RequestBody BasePageRequestDTO request) {
        List<IncomeWithdrawRecordPageResponse> pageBean = incomeWithdrawRecordService.list(request);
        return Result.success(pageBean);
    }
}
